import backtrader as bt


# Create a Stratey
class BaseStrategy(bt.Strategy):
    params = ()
    fixMoney = 10 * 10000

    def buy2(self):
        cnt = round(self.fixMoney / self.data.close[0])
        self.buy(size=cnt)

    def sell2(self):
        self.sell()
